words = ["java", "spark", "java", "python"]

# enumerate: 带下标循环列表
for index, word in enumerate(words):
    print(index, word)
